<template>
  <div class="top">
    <div class="footer_wrap">
      <router-link to="/find">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <router-link to="/friend">朋友</router-link>
    </div>
    <div class="body">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    btn () {
      this.$router.push({

      })
    }
  }
}
</script>

<style scoped>
/* 省略了 其他样式 */
.top {
  position: relative;
    width: 100%;
    padding-top: 62px;
}
.body {
      width: 100%;
    margin-top: 62px;
}
.footer_wrap {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  height: 80px;
  text-align: center;
  background-color: #333;
  color: #ccc;
}
.footer_wrap a {
    flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid #000;
}
.footer_wrap .router-link-active{
  color: white;
  background: black;
}
</style>
